home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Development Tools & Languages / MouseInfo / UMenuedWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-04  |  2.0 KB  |  71 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    UMenuedWindow.h
  3.  *
  4.  *    Copyright 1991 Imagenetics
  5.  *    All rights reserved
  6.  *
  7.  *    19 Aug 91  EMB  Created file
  8.  *    22 Aug 91  EMB  Modified design to be standalone unit
  9.  *    28 Oct 91  LPG  Cleaned up header.
  10.  *
  11.  */
  12.  
  13. #ifndef    __UMENUEDWINDOW__
  14. #define    __UMENUEDWINDOW__
  15.  
  16. #ifndef    __UFLOATWINDOW__
  17. #include <UFloatWindow.h>
  18. #endif
  19.  
  20. //----------------------------------------------------------------------------------------
  21. // Global constant
  22. //----------------------------------------------------------------------------------------
  23.  
  24. const IDType    kMenuedWindowBehavior = 'MUWD';
  25.  
  26. //----------------------------------------------------------------------------------------
  27. // TFloatMenuedWindow
  28. //----------------------------------------------------------------------------------------
  29.  
  30. class TFloatMenuedWindow : public TFloatWindow
  31. {
  32.     DeclareClass(TFloatMenuedWindow);
  33.     
  34. public:
  35.  
  36.     // Construction/Destruction
  37.     virtual void    DoPostCreate(TDocument* itsDocument);            //    OVERRIDE
  38.     virtual void    Free();                                            //    OVERRIDE
  39.     virtual void    IFloatMenuedWindow(TDocument* itsDocument,
  40.                                                WindowPtr itsWMgrWindow,
  41.                                                Boolean canResize,
  42.                                                Boolean canClose,
  43.                                                Boolean disposeOnFree);
  44. };
  45.  
  46. //----------------------------------------------------------------------------------------
  47. // TMenuedWindow
  48. //----------------------------------------------------------------------------------------
  49.  
  50. class TMenuedWindow : public TWindow
  51. {
  52.     DeclareClass(TMenuedWindow);
  53.     
  54. public:
  55.     // Construction/Destruction
  56.     virtual void    DoPostCreate(TDocument* itsDocument);            //    OVERRIDE
  57.     virtual void    Free();                                            //    OVERRIDE
  58.     virtual void    IMenuedWindow(TDocument* itsDocument,
  59.                                           WindowPtr itsWMgrWindow,
  60.                                           Boolean canResize,
  61.                                           Boolean canClose,
  62.                                           Boolean disposeOnFree);
  63. };
  64.  
  65. //----------------------------------------------------------------------------------------
  66. // Global initialization procedure
  67. //----------------------------------------------------------------------------------------
  68.  
  69. void InitUMenuedWindow(ResNumber menuID);
  70.  
  71. #endif